package com.loto.insurance.mis.web.enumeration;

public enum PolicyStatusEnum {
  CANCELED("取消", 0, "保单已取消"), UNINSURED("等待支付", 1, "等待支付"), PAID("支付成功",
	  2, "支付成功"), INSURED_SUC("投保成功", 3, "投保成功"), INSURED_FAILS("投保失败", 4,
	  "投保失败"), SURRENDER_APPLIED("申请退保", 5, "申请退保"), SURRENDER_AGREED("同意退保",
	  6, "同意退保"), SURRENDER_REFUSED("拒绝退保", 7, "拒绝退保"), SURRENDER_SUC("退保成功",
	  8, "退保成功"), SURRENDER_FAILS("退保失败", 9, "退保失败");

  private String name;
  private int index;
  private String desc;

  private PolicyStatusEnum(String name, int index, String desc) {
	this.name = name;
	this.index = index;
	this.desc = desc;
  }

  public String getName() {
	return name;
  }

  public void setName(String name) {
	this.name = name;
  }

  public int getIndex() {
	return index;
  }

  public void setIndex(int index) {
	this.index = index;
  }

  @Override
  public String toString() {
	return this.name;
  }

  public String getDesc() {
	return desc;
  }

  public void setDesc(String desc) {
	this.desc = desc;
  }
}
